import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import * as directives from '@/directives'

import '@/elementUI' // 注册elementUI组件
import '@/assets/global.less' // 全局初始化样式

Object.keys(directives).forEach(key => {
  Vue.directive(key, directives[key])
})
Vue.use(require('vue-moment'))
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
